package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.OrderBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetOrderListIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetOrderListModel extends RetrofitBaseModel implements GetOrderListIface<OrderBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetOrderListModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getOrderList(String userid, String orderflag, ListListener<OrderBean> listListener) {
        Call<List<OrderBean>> call = allService.getOrderList(userid,orderflag);
        callenqueueList(call,listListener);
    }


}
